
CREATE TABLE "Machine" (
	"MachineId" bigserial NOT NULL,
	"MachineCode" varchar(255) NULL,
	"MachineName" varchar(255) NULL,
	"Active" bool NULL DEFAULT true,
	"CreatedBy" int8 NOT NULL,
	"CreatedDate" timestamp NOT NULL,
	"ModifiedBy" int8 NULL,
	"ModifiedDate" timestamp NULL,
	CONSTRAINT "Machine_pkey" PRIMARY KEY ("MachineId"),
	CONSTRAINT "FK_Machine_CreatedBy" FOREIGN KEY ("CreatedBy") REFERENCES "Account"("AccountId")
);